package com.group.mall.mapper;

import com.group.mall.domain.POJO.Collect;
import com.group.mall.domain.VO.CollectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：xiexu
 * @Date：2024/6/18 14:42
 */
@Mapper
public interface CollectMapper {

    List<CollectVO> getCollectList(Integer userId);


    boolean addCollect(Collect collect);

    boolean deleteCollect(@Param("userId") Integer userId,@Param("goodId") Integer goodId);
}
